import { Login } from "@/http/interface/index";
import qs from "qs";
import http from "@/http";
import menuList from "@/json/menu.json";

/**
 * @name 登录模块
 */

// 用户登录
export const loginApi = (params: Login.ReqLoginForm) => {
  return http.post<Login.ResLogin>("/login", qs.stringify(params));
};

// 获取菜单列表
export const getMenuListApi = () => {
  return menuList;
};
